﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Ay.Framework.WPF.Controls;

namespace Hotel.UI.Views
{
    /// <summary>
    /// Change.xaml 的交互逻辑
    /// </summary>
    public partial class Change : AyWindow
    {
        //第一步：定义命令

        static public ActionResult Submit
        {
            get;
            set;
        }
          = new ActionResult(
            (object object_0) => AyMessageBox.Show("你喜爱的运动项目")
        );



        public Change()
        {
            InitializeComponent();


#if DEBUG
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("南京路店", new string[] { "njld", "南京路店" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("北京路店", new string[] { "bjld", "北京路店" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("南京", new string[] { "nj" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("上海", new string[] { "sh" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("北京", new string[] { "bj" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("天津", new string[] { "tj" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("山东", new string[] { "sd" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("蒙古", new string[] { "mg" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("新疆", new string[] { "xj" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("浙江", new string[] { "zj" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("海南", new string[] { "hn" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("三亚", new string[] { "sy" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("澳门", new string[] { "am" }));
            this.AutoCompleteHotels.AddItem(new AyAutoCompleteEntity("台湾", new string[] { "tw" }));



#endif
            AyExtension.SetAyWindowMouseLeftButtonMove(this);



        }

        private void BtnContinue_Click(object sender, RoutedEventArgs e)
        {
            AyWindowManager<Main>.Show(delegate (Main win)
            {
                System.Windows.Application.Current.MainWindow = win;

                win.Show();
                Close();
            }, null);
        }
    }
}
